﻿@model JuniorProject.Models.Employee.EmployeeJobModel

@{
    ViewBag.Title = "JobDetails";
}

<h2>
Job Details - @Model.Title
</h2>
<br />

<fieldset>
    <legend>EmployeeJobModel</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.JobID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.JobID)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Description)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Description)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.InsertDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.InsertDate.Month).
        @Html.DisplayFor(model => model.InsertDate.Day).
        @Html.DisplayFor(model => model.InsertDate.Year)
    </div>
</fieldset>

<p>
    @if (string.Equals(ViewData["AccessLevel"], "6") || string.Equals(ViewData["AccessLevel"], "2"))
    {
        @Html.ActionLink("Edit Job Details", "EditJob", new { id = Model.JobID }) <br />
    }
    @if (string.Equals(ViewData["AccessLevel"], "6") || string.Equals(ViewData["AccessLevel"], "2"))
    {
        @Html.ActionLink("Edit Questions for this Job", "MapQuestionsToJob", new { jobID = Model.JobID, newJob = false }) <br />
    }
    @Html.ActionLink("Back to List", "Jobs" )
</p>
<p>
    @Html.Partial("_EmployeeBottomNavBar", ViewData["AccessLevel"])
</p>